﻿using System;
using UniMana.Utils.Helper;
namespace UniMana.Win.Leadership
{
    public partial class FrmReportClass_Class : DevExpress.XtraEditors.XtraForm
    {
        public FrmReportClass_Class()
        {
            InitializeComponent();
        }

        private void nbiCourse_LinkClicked(
            object sender, 
            DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            TabShowFrm.ShowTabbedMdi(
                new FrmReportClass_Class_SubCourse(), 
                xtbClassReport);
        }

        private void nbiDepartment_LinkClicked(
            object sender, 
            DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            TabShowFrm.ShowTabbedMdi(
                new FrmReportClass_Class_SubDepartment(), 
                xtbClassReport);
        }

        private void nbiLevel_LinkClicked(
            object sender, 
            DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            TabShowFrm.ShowTabbedMdi(
                new FrmReportClass_Class_SubLevel(), 
                xtbClassReport);
        }

        private void nbiMajor_LinkClicked(
            object sender, 
            DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            TabShowFrm.ShowTabbedMdi(
                new FrmReportClass_Class_SubMajor(), 
                xtbClassReport);
        }

        private void nbiTrainingType_LinkClicked(
            object sender, 
            DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            TabShowFrm.ShowTabbedMdi(
                new FrmReportClass_Class_SubTrainingType(), 
                xtbClassReport);
        }

        private void xtbClassReport_CloseButtonClick(
            object sender, 
            EventArgs e)
        {
            xtbClassReport.TabPages.Remove(
                xtbClassReport.SelectedTabPage);
        }

        private void navBarControl1_Click(object sender, EventArgs e)
        {
            TabShowFrm.ShowTabbedMdi(
                new FrmReportClass(), 
                xtbClassReport);
        }
    }
}